﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using _3D_Demo;

namespace _3D_Lab1
{
    public class Building : VisibleGameEntity
    {
        private My3DModel _Model;

        public My3DModel Model
        {
            get { return _Model; }
            set { _Model = value; }
        }


        public Building(ContentManager content,string strModel,float scale,Vector3 potation,Matrix rotation)
        {
            _Model = new My3DModel(content, strModel,scale,potation,rotation);

        }
//         public void Draw (GameTime gameTime,GraphicsDevice graphicsDevices,Camera camera)
        public override void Draw(GameTime gameTime,GraphicsDevice graphicsDevices,Effect eff,Camera camera)
        {
            _Model.Draw(gameTime,graphicsDevices,eff,camera);
//            base.Draw(gameTime);
        }
    }
}
